//
//  ConfirmTopTimeView.m
//  GLGW_Shoping
//
//  Created by yang on 2018/11/13.
//  Copyright © 2018年 yang. All rights reserved.
//

#import "ConfirmTopTimeView.h"

@implementation ConfirmTopTimeView

- (instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame]) {
        self.backgroundColor = [UIColor colorWithHexString:@"#A89A60" alpha:0.4];
        GLGWImageView *imgV = [[GLGWImageView alloc] initWithImageName:@"icon_laba" inSuperView:self];
        [imgV mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self.mas_left).offset(kWidthProportion_In_iPhoneTriploid(15));
            make.centerY.equalTo(self.mas_centerY);
            make.width.equalTo(@(kWidthProportion_In_iPhoneTriploid(23)));
            make.height.equalTo(@(kHeightProportion_In_iPhoneTriploid(20)));
        }];
        
        GLGWLabel *lab = [[GLGWLabel alloc] initWithFont:SYSTEMFONT(14) theColor:[UIColor colorWithHexString:@"#EC5353"] inSuperView:self];
        NSString *str = @"距报价结束还有：0天12时56分12秒";
        [lab mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(imgV.mas_right).offset(kWidthProportion_In_iPhoneTriploid(8));
            make.centerY.equalTo(imgV.mas_centerY);
        }];
        lab.text = str;
    }
    return self;
}

@end
